import MallGoodsController from "../app/controllers/malls/MallGoodsController.js"
import MallGoodsCateController from "../app/controllers/malls/MallGoodsCateController.js"
import MallShopController from "../app/controllers/malls/MallShopController.js"
/**
 * 商城管理
 */
let MallRoute = {
	"title": "商城管理",
	"path": "/mall",
	"controller": MallGoodsController.listAction,
	"child": [
		{
			"title": "商品管理",
			"path": "/mall/shop",
			"controller": MallGoodsController.listAction,
			"menu": true,
			"child": [
				{
					"title": "商品列表",
					"path": "/mall/goods/list",
					"controller": MallGoodsController.listAction,
				},
				{
					"title": "商品详情",
					"path": "/mall/goods/detail/{goodsId}",
					"where": [
						["goodsId", "[0-9]+"]
					],
					"controller": MallGoodsController.listAction,

				}
				
			]
		},
		{
			"title": "商品分类",
			"path": "/mall/shop/cate",
			"controller": MallShopController.listAction
		},
		{
			"title": "店铺管理",
			"path": "/mall/shop",
			"controller": MallShopController.listAction,
			"child": [
				{
					"title": "店铺列表",
					"path": "/mall/shop/list",
					"controller": MallShopController.listAction,
				}
			]
		}
	]
}

export default MallRoute